#include "drink.h"
#include <stdarg.h>

double total(int args, ...) {
	double total = 0;
	va_list ap;
	va_start(ap, args);
	int i;
	for(i = 0; i < args; i++) {
		total += price(va_arg(ap, enum drink));
	}
	va_end(ap);
	return total;
}

